package Control;
import java.util.ArrayList;


public class CharacterDialogEpisode extends CharacterContainer{
	
	

	public CharacterDialogEpisode(Character character) {
		super(character, new ArrayList<Visualizable>());
	}

	
	
	public void add(DialogEpisode dialogEpisode){
		this.getList().add(dialogEpisode);
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((getCharacter() == null) ? 0 : getCharacter().hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CharacterDialogEpisode other = (CharacterDialogEpisode) obj;
		if (getCharacter() == null) {
			if (other.getCharacter() != null)
				return false;
		} else if (!getCharacter().equals(other.getCharacter()))
			return false;
		return true;
	}
	
	
	
}
